package com.java.basis.lambda;


/**
 * @author wangning
 * @create 2021-10-27 15:35
 */
class Person implements Behavior {
	@Override
	public void play() {
		System.out.println("play game");
	}
}

interface Behavior {
	void play();
}

class Men implements Behavior {
	@Override
	public void play() {
		System.out.println("play computer game");
	}
}

public class LambdaTest03 {
	public static void main(String[] args) {
		Men men = new Men();
		men.play();


	}
}
